package com.example.friend.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.core.domain.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
* <p>
*
* </p>
*
* @author 49940
* @date 2024年01月22日 18:09:26
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_message")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Message extends BaseEntity {
    
	@TableId(value = "MESSAGE_ID", type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
	@Schema(description = "消息 id")
	private Long messageId;

	@Schema(description = "消息内容id")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long textId;

	@Schema(description = "发送人id")
	private Long sendId;

	@Schema(description = "接收人id")
	private Long recId;

//	@Schema(description = "查看状态（0 未查看 1已查看）")
//	private Integer status;
}